package com.ruoyi.web.controller.applet;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.HospitalSubscribeSetMeal;
import com.ruoyi.system.domain.vo.HospitalSubscribeScheduleDaysVo;
import com.ruoyi.system.service.IHospitalSubscribeSetMealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 体检套餐Controller
 * 
 * @author ruoyi
 * @date 2025-04-26
 */
@RestController
@RequestMapping("/applet/meal")
public class HospitalSubscribeSetMealAppletController extends BaseController
{
    @Autowired
    private IHospitalSubscribeSetMealService hospitalSubscribeSetMealService;


    /**
     * 查询体检套餐列表 包含检查项目 已上架的
     * @response {@link HospitalSubscribeSetMeal}
     */
    @GetMapping("/list")
    public TableDataInfo list(HospitalSubscribeSetMeal hospitalSubscribeSetMeal)
    {
        startPage();
        hospitalSubscribeSetMeal.setIsShow(0);
        List<HospitalSubscribeSetMeal> list = hospitalSubscribeSetMealService.selectHospitalSubscribeSetMealList(hospitalSubscribeSetMeal);
        return getDataTable(list);
    }

    /**
     * 查询热门体检套餐列表 包含检查项目 已上架的
     * @response {@link HospitalSubscribeSetMeal}
     */
    @GetMapping("/hotList")
    public TableDataInfo hotList(HospitalSubscribeSetMeal hospitalSubscribeSetMeal)
    {
        startPage();
        hospitalSubscribeSetMeal.setIsHot(1);
        List<HospitalSubscribeSetMeal> list = hospitalSubscribeSetMealService.selectHospitalSubscribeSetMealList(hospitalSubscribeSetMeal);
        return getDataTable(list);
    }
}
